import axios from '@/libs/request/axios'
import QS from 'qs';

//保存自动付款信息
export const saveAutoPayInfo = (params) => {
    return axios.request({
        url: `/contractBasic/autoPay/saveAutoPayInfo`,
        params: params,
        method: 'post'
    })
}
//保存自动付款信息
export const queryAutoPayInfo = (id) => {
    return axios.request({
        url: `/contractBasic/autoPay/queryAutoPayInfo`,
        data: QS.stringify({id: id}, {arrayFormat: 'repeat'}),
        method: 'post',
        headers: {'content-type': 'application/x-www-form-urlencoded'},
    })
}
